package cn.cdeden.knowledge.domain;

import cn.cdeden.knowledge.domain.dto.FilesDistributeTreeDto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

/**
 * 文件分发树

 */
@Data
@TableName(value = "files_distribute_tree")
@AutoMappers({@AutoMapper(target = FilesDistributeTreeDto.class),
    @AutoMapper(target = PersonalFilesTree.class)})
public class FilesDistributeTree {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父亲编号
     */
    @TableField(value = "parent_id")
    private String parentId;

    /**
     * 后缀名
     */
    @TableField(value = "suffix")
    private String suffix;

    /**
     * 名称
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 上级路径
     */
    @TableField(value = "superiors_path")
    private String superiorsPath;

    /**
     * 路径
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 类型
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 储存表id
     */
    @TableField(value = "storage_id")
    private String storageId;

    /**
     * 储存服务器类型
     */
    @TableField(value = "storage_type")
    private String storageType;

    /**
     * 文件大小
     */
    @TableField(value = "`size`")
    private Long size;

    /**
     * 关连状态
     */
    @TableField(value = "linking_state")
    private String linkingState;

    @TableField(value = "is_lock")
    private String isLock;

    /**
     * 创建编号
     */
    @TableField(value = "create_id")
    private String createId;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新编号
     */
    @TableField(value = "update_id")
    private String updateId;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 版本
     */
    @TableField(value = "edition_name")
    private String editionName;

    /**
     * 版本号
     */
    @TableField(value = "edition")
    private String edition;

    /**
     * 文件的MD5
     */
    @TableField(value = "file_md5")
    private String fileMd5;

    @TableField(value = "distribute_id")
    private String distributeId;

    /**
     * 模块
     */
    @TableField(value = "modules")
    private String modules;
}
